package com.unjuanable.safetymonitor.domain.common.validator;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @description
 */
@Component
public class DateTimeValidator {

    public void startTimeShouldEarly(LocalDateTime startAt, LocalDateTime endAt) {
        if (!startAt.isBefore(endAt)) {
            throw new RuntimeException();
        }
    }
}
